<template>
    <div id="app">
        <div class="header">网页头部</div>
        <div class="content">
            <CartHeader />
            <CartList />
            <CartFooter />
        </div>
        <div class="footer">网页底部</div>
    </div>
</template>

<script>
import CartHeader from "./components/CartHeader.vue";
import CartList from "./components/CartList.vue";
import CartFooter from "./components/CartFooter.vue";
import { mapState, mapGetters } from "vuex";
export default {
    name: "App",
    data() {
        return {};
    },
    methods: {},
    components: { CartHeader, CartList, CartFooter },
    computed: {
        ...mapState(["list"]),
        ...mapGetters(["allSelect"]),
    },
};
</script>
<style>
* {
    margin: 0;
    padding: 0;
}

ul,
ol,
li {
    list-style: none;
}

input,
button,
textarea {
    outline: none;
    border: none;
}

a,
a:hover,
a:target,
a:link,
a:active {
    text-decoration: none;
    color: #333;
}

a,
img {
    width: 100%;
    height: 100%;
    display: block;
}
.header,
.footer {
    width: 1200px;
    height: 80px;
    background-color: skyblue;
    color: #fff;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.footer {
    height: 300px;
    font-size: 100px;
}
.content {
    width: 1200px;
    padding: 10px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
</style>
